<template>
  <div>
    <div style="text-align:center;">
      <p style="margin-bottom:42rpx;margin-top:40rpx;">{{title}}</p>
      <p style="font-size:20rpx;">{{time}}</p>
    </div>
    <!-- <web-view src="http://cdn-hterobot.oss-cn-qingdao.aliyuncs.com/forumtxt/6bc7b3cb-0dee-46b9-bcb0-a7b24482c93b.html" /> -->
    <div v-html="commentsh"></div>
    <!-- <p><img src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/50/pcmoren_huaixiao_org.png" alt="[坏笑]" data-w-e="1"><img src="http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/7a/shenshou_thumb.gif" alt="[草泥马]" data-w-e="1">?<img src="https://cdn.hterobot.com/school/447b6564-4605-4431-83b3-63bc17a071d2.png" style="max-width: 100%;"><br></p> -->
  </div>
</template>
<script>
export default {
  data() {
    return {
      ID: "",
      time: "",
      title: "",
      commentsh: "",
    };
  },
  onLoad(option) {
    this.ID = option.id;
  },
  mounted(){
    this.start()
  },
  methods: {
    start(){
      const ID = this.ID
      const that = this

       wx.request({
          url: that.$interfaces.Findmailinformation+"/"+ID,
         method: "get",
         success: function(res) {
           that.title=res.data.title
           that.time=new Date(res.data.createdAt).toLocaleDateString()
           that.commentsh=res.data.text
         }
       })
    }
  }
};
</script>
